
/*
 *  Copyright (c) 2016. For Intelligent Group.
 *
 */

package com.intelligent.ispc.client.event;

/**
 * Created by Lucien.Chen on 2016/11/2.
 */
public class ExportBtnEnabledEvent {
    private String key;
    private boolean isEnabled;

    /**
     * Event constructor.
     *
     * @param isEnabled boolean enable export button or not
     */
    public ExportBtnEnabledEvent(boolean isEnabled) {
        this.isEnabled = isEnabled;
    }


    /**
     * Event constructor.
     *
     * @param key       String model key
     * @param isEnabled boolean enable export button or not
     */
    public ExportBtnEnabledEvent(String key, boolean isEnabled) {
        this.key = key;
        this.isEnabled = isEnabled;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public boolean isEnabled() {
        return isEnabled;
    }

    public void setEnabled(boolean enabled) {
        isEnabled = enabled;
    }
}
